<!DOCTYPE html>
<html class="um landscape min-width-240px min-width-320px min-width-480px min-width-768px min-width-1024px">
<head>
    <title><!--绩效打分--></title>
    <meta charset="utf-8">
    <meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
    <link rel="stylesheet" href="css/project/ui-res-v3.css">
    <link rel="stylesheet" href="css/project/ui-input-v3.css">
    <link rel="stylesheet" href="css/project/ui-color-v3.css">
	<link rel="stylesheet" href="css/project/style.css">
    <link rel="stylesheet" href="css/ui-base.css">
    <link rel="stylesheet" href="css/ui-box.css">
	<link rel="stylesheet" href="css/zv_common.css">
    <script src="js/zy_control.js"></script>
    <script src="js/zy_click.js"></script>
	<script src="js/zy_json.js"></script>
	<script src="js/main.js"></script>
	<script src="js/init.js"></script>
    <script type="text/javascript" src="js/JsonSQL/jsonsql-0.1.js"></script>
	<script src="js/talkingdata.js"></script>
</head>
<body class="um-vp" ontouchstart>
<div id="page_1" class="ub ub-ver um-vp">
<div class=" c-wh">
<!--旅服 装卸绩效选择开始-->
		<div class="ub">
				<div class="ub ub-ac us-hnfn ub-f1 c-wh1"  style="background-color:#E1EAF7; width:100%; " >
					<input class="uhide" type="radio" id="type1" name="type" checked="checked">
					<div class=" ub-f1 tx-c uinn-hnfn2 ulev0 fontcolor"   id="type1"  style="width:50%"  onmousedown="zy_touch('',zy_for)" ontouchstart="zy_touch('',zy_for)" onclick="notice('1')">旅服绩效</div>
					
					<input class="uhide" type="radio" id="type2" name="type" >
					<div class=" ub-f1 tx-c fontcolor uinn-hnfn2 ulev0"   id="type2" style="width:50%"   onmousedown="zy_touch('',zy_for)" ontouchstart="zy_touch('',zy_for)" onclick="notice('2')">装卸绩效</div>
				</div>
    	</div>
<!--旅服 装卸绩效选择结束-->		
</div>


<div class="ub ub-ver">
	<div id="performance_ratings1" style="display:block;">
	
	<div class="fline   c-wh">
   	 <div class="ub ulab ub-ac umh1 umar-t " >
			<div class="umw4 ">员工工号</div>
			<div class="uba ub-f1 b-bla uinput uc-a1 noboder nobg" style="padding-left:0.5em; padding-right:0.5em">
		            	<input placeholder="请输入员工工号" type="tel"   id="staffid"  style="width:100%; height:1.8em; border:0px;outline:none " class="t-gra"  value="">
			</div>
		</div>
	</div>
		
		<div class="fline  c-wh">
	    <!--下拉列表开始-->
		<div class="ub t-bla ub-ac umar-t">
		    <div class="ulim umw4 umar-r">分部名称</div>
		    <div class="ub-f1 ub uba c-wh b-gra  sel  noboder">
		        <div class="ub-f1 ut-s uinn tx-l t-gra ulh-sel">选择分部名称</div>
		        <div class="b-gra  umw2 ub ub-pc ub-ac">
		            <div class="ub-img umw1 umh1 res3"></div>
		        </div>
		        <select name="GroupId" selectedindex="0" id="GroupId" onchange="zy_selectmenu(this.id)">
		        </select>
		    </div>
		</div>
		<!--下拉列表结束-->
		</div>
		<div class="fline   c-wh">
   	 <div class="ub ulab ub-ac umh1 umar-t " >
			<div class="umw4 ">查询日期</div>
			<div class="uba ub-f1 b-bla uinput uc-a1 noboder nobg" style="padding-left:0.7em; padding-right:0.5em">
		            	<input  placeholder="请输入员工工号"  type="month" id="myMonth"   style="width:100%; height:1.8em; line-height:1.8em; border:0px;outline:none " class="t-gra">
			</div>
		</div>
	</div>
	<!--提交按钮-->
	<div ontouchstart="zy_touch('zv-btn-act')" class="zvbtn  c-blu1  t-wh tx-c uc-a1 zvbtnpadding"   onclick="LoadDataS()" >确 定</div>
</div>

<div id="performance_ratings2" style="display:none;">
<div class="fline  c-wh">
<!--下拉列表开始-->
	<div class="ub t-bla ub-ac umar-t">
	    <div class="ulim umw4 umar-r">站点名称</div>
	    <div class="ub-f1 ub uba c-wh b-gra  sel noboder">
	        <div class="ub-f1 ut-s uinn tx-l t-gra ulh-sel">选择站点名称</div>
	        <div class="b-gra  umw2 ub ub-pc ub-ac">
	            <div class="ub-img umw1 umh1 res3"></div>
	        </div>
	          <select name="code2" selectedindex="0" id="code2" onchange="zy_selectmenu(this.id)">
	            <option value="">选择站点名称</option>
				<option value="SHA">虹桥</option>
	            <option value="PVG">浦东</option>
	         </select>
	    </div>
	</div>
	<!--下拉列表结束-->
</div>
	
<div class="fline  c-wh">	
    <!--下拉列表开始-->
	<div class="ub t-bla ub-ac umar-t">
	    <div class="ulim umw4 umar-r">员工类型</div>
	    <div class="ub-f1 ub uba c-wh b-gra  sel noboder">
	        <div class="ub-f1 ut-s uinn  tx-l t-gra ulh-sel">选择员工类型</div>
	        <div class="b-gra umw2 ub ub-pc ub-ac">
	            <div class="ub-img umw1 umh1 res3"></div>
	        </div>
	        <select name="type_id" selectedindex="0" id="type_id" onchange="zy_selectmenu(this.id)">
	            <option value="">选择员工类型</option>
				<option value="0">装卸工</option>
	            <option value="1">牵引车</option>
	            <option value="2">特种车</option>
	        </select>
	    </div>
	</div>
</div>
	
<div class="fline  c-wh">	
    <div class="ub ulab ub-ac umh2 umar-t" >
			<div class="umw4 ">员工工号</div>
			<div class="c-wh uba ub-f1 b-bla uinput   noboder" style="padding-left:0.7em; padding-right:0.5em">
		            	<input placeholder="请输入员工工号" type="text"   id="no2"  style="width:100%; height:1.8em; border:0px;outline:none; " class="t-gra"  value="">
			</div>
		</div>
</div>
    
<div class="fline  c-wh">	
	<!--下拉列表结束-->
    <div class='ub umar-t ub-ac' >
	<div class=" ub-ac　ulim ulev0 umw4" style=" margin-right:0.4em; height:2em; line-height:2em">起始日期</div>
    <div class="ub ub-f1 uba ub-ac b-bla b-norarea noboder c-wh" >
 	<div class="ub-f1 ut-s uinn   tx-l t-gra ulh-sel" id="dateStart2" style="width:100%;" onclick="checked_day('dateStart2')">请选择开始日期</div>
	<!--文本输入结束-->
    </div>
</div><!--起始日期结束-->
</div>

<div class="fline  c-wh">
    <div class='ub umar-t ub-ac' >
	<div class=" ub-ac　ulim ulev0 umw4 datecolor" style=" margin-right:0.4em; height:2em; line-height:2em">结束日期</div>
    <div class="ub ub-f1 uba ub-ac b-bla b-norarea c-wh noboder"  >
    <!--文本输入开始-->
	<div class="ub-f1 ut-s uinn   tx-l t-gra ulh-sel" id="dateEnd2" style="width:100%; " onclick="checked_day('dateEnd2')">请选择结束日期</div>
	<!--文本输入结束-->
    </div>
</div><!--结束日期结束-->
</div>
<!--提交按钮-->

<div ontouchstart="zy_touch('zv-btn-act')" class="zvbtn  c-blu1  t-wh tx-c uc-a1 zvbtnpadding"   onclick="LoadDataS2()" >确 定</div>
</div>

</div>

<div class="logobg" style="z-index:-1"><img src="images/logobg.png"  width="80%"></div>
</div>
</body>
<script>
zy_init();
window.uexOnload=function(type){
	if(!type){
		uexWindow.setBounce("0");
		IC.talkingDataCount("绩效打分","0016");
	}
	var bodyH = document.body.clientHeight;
	document.getElementById("page_1").style.height=(bodyH-10)+"px"
	select1_val('27','GroupId','<option value="">请选择部门名称</option>')
	var time_data= getNowFormatDate();
	time_data=time_data.split("-")
	$$("myMonth").value =time_data[0]+"-"+time_data[1];
	var backup_myMonth_lf= localStorage.getItem("backup_myMonth_lf")
	if(backup_myMonth_lf!='null' && backup_myMonth_lf!=null && backup_myMonth_lf!='' &&backup_myMonth_lf!=undefined)
	{
	$$("myMonth").value =backup_myMonth_lf;	
	}
	
	$$("dateStart2").innerHTML = getNowFormatDate();
	var backup_dateStart_zx= localStorage.getItem("backup_dateStart_zx")
	if(backup_dateStart_zx!='null' && backup_dateStart_zx!=null && backup_dateStart_zx!='' &&backup_dateStart_zx!=undefined)
	{
	$$("dateStart2").innerHTML =backup_dateStart_zx;	
	}
	$$("dateEnd2").innerHTML = getNowFormatDate();
	var backup_dateEnd_zx= localStorage.getItem("backup_dateEnd_zx")
	if(backup_dateEnd_zx!='null' && backup_dateEnd_zx!=null && backup_dateEnd_zx!='' &&backup_dateEnd_zx!=undefined)
	{
	$$("dateEnd2").innerHTML =backup_dateEnd_zx;	
	}
}
function notice(id)
{
	IC.talkingDataCount("绩效打分","0016");
	 localStorage.setItem("notice",id);
	 if(id==1){
	    performance_ratings1.style.display = 'block';
		performance_ratings2.style.display = 'none';
	 	//$("#performance_ratings1").css("display","block");
		//$("#performance_ratings2").css("display","none");
	 }
	 if(id==2){
		performance_ratings1.style.display = 'none';
		performance_ratings2.style.display = 'block';
	 	//$("#performance_ratings1").css("display","none");
		//$("#performance_ratings2").css("display","block");
	 }
}
function LoadDataS()
{
		IC.talkingDataCount("绩效打分","0016");
		var staffid = $$("staffid").value; /*员工id*/
		var GroupId = $$("GroupId").value; /*分部名称*/
		var myMonth = $$("myMonth").value;/*日期*/
		localStorage.setItem("backup_myMonth_lf",myMonth);
		if (GroupId == '') {
			$alert('请选择分部名称');
			return false;
		}
		else if (myMonth == '') {
				$alert('请选择查询日期');
				return false;
		}
		else {
				Loading(0);
				localStorage.setItem("brigade_take_performance_page",1);//第一页
				var wsdl = upd_brigade_take_performance_url
			    var nameSpace = upd_brigade_take_performance_nameSpace
				var paras = "staffid|depart|date|currentindex|pagenum";
				var values = staffid+"|"+GroupId+"|"+myMonth+"|1|20";
				var method =upd_brigade_take_performance_function
				setLocalJosn(wsdl,nameSpace,paras,values,method,"brigade_take_performance","brigade_take_performance.html");		
		}
}
function brigade_take_performance_page(page){
	IC.talkingDataCount("绩效打分","0016");
	var staffid = $$("staffid").value; /*员工id*/
	var GroupId = $$("GroupId").value; /*分部名称*/
	var myMonth = $$("myMonth").value;/*日期*/
	localStorage.setItem("brigade_take_performance_page",page);
	var wsdl = upd_brigade_take_performance_url
	var nameSpace = upd_brigade_take_performance_nameSpace
	var paras = "staffid|depart|date|currentindex|pagenum";
	var values = staffid+"|"+GroupId+"|"+myMonth+"|"+page+"|20";
	var method =upd_brigade_take_performance_function
	setLocalJosnPage(wsdl,nameSpace,paras,values,method,"brigade_take_performance","brigade_take_performance");	
}
function LoadDataS2()
{
		var code = $$("code2").value; /*站点名称*/
		var type = $$("type_id").value;/*员工类型*/
		var no = $$("no2").value;/*员工号*/
		var dateStart = $$("dateStart2").innerHTML;/*开始时间*/
		var dateEnd = $$("dateEnd2").innerHTML;/*结束时间*/
		localStorage.setItem("backup_dateStart_zx",dateStart);
		localStorage.setItem("backup_dateEnd_zx",dateEnd);
		
		if (code == '') {
			$alert('请选择站点名称');
			return false;
		}
		else if (type == '') {
				$alert('请选择员工类型');
				return false;
		}
		else if (dateStart == '' || dateStart == '请选择开始日期' ) {
					$alert('请选择开始日期');
					return false;
		}
		else if (dateEnd == '' || dateEnd == '请选择结束日期' ) {
			$alert('请选择结束日期');
			return false;
		}
		else {
				Loading(0);
				uexEMM.setEvent("1","{'绩效打分':'绩效打分搜索'}");
				IC.talkingDataCount("绩效打分","0016");
				setTimeout(function(){passenger_inform2(code,type,no,dateStart,dateEnd)},200);					
		}
}
function passenger_inform2(code,type,no,dateStart,dateEnd){
          var wsdl =  handling_performance_url
    var nameSpace =  handling_performance_nameSpace
	var paras = "code|type|no|dateStart|dateEnd";
	var values = code+'|'+type+'|'+no+'|'+dateStart+'|'+dateEnd;
	var method = handling_performance_function
	if(type==0)
	{
		setLocalJosn(wsdl, nameSpace, paras, values, method, "stevedore_performance", "stevedore_performance.html");
	}
	else if(type==1)
	{
		setLocalJosn(wsdl, nameSpace, paras, values, method, "tractor_performance", "tractor_performance.html");
	}
	else
	{
		setLocalJosn(wsdl, nameSpace, paras, values, method, "special_vehicle_performance", "special_vehicle_performance.html");
	}
}
</script>

</script>
</html>
